package hu.mapro.flang.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

public class AppEntryPoint implements EntryPoint {

	private final ApplicationGinjector injector = GWT.create(ApplicationGinjector.class);
	
	public void onModuleLoad() {
		Application application = injector.application();
		application.run();
		
//		final MainWindow mainWindow = new MainWindow();
//		LoginInterface loginInterface = mainWindow;
//		Display display = new LoadingDisplay();
//		
//		ApplicationRequestFactory applicationRequestFactory = GWT.create(ApplicationRequestFactory.class);
//		
//		DefaultLoginService loginService = new DefaultLoginService(loginInterface);
//		DefaultUiBuilder defaultUiBuilder = new DefaultUiBuilder(mainWindow, loginInterface, mainWindow, loginService, display);
//		UiBuilder uiBuilder = new UiBuilder(mainWindow, loginService, applicationRequestFactory);
//		
//		uiBuilder.build();
//		defaultUiBuilder.build();
//		
//		defaultUiBuilder.display();
		
	}
}